package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DasicDingtalkConfigMapper;
import com.ruoyi.system.domain.DasicDingtalkConfig;
import com.ruoyi.system.service.IDasicDingtalkConfigService;

/**
 * 钉钉配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DasicDingtalkConfigServiceImpl implements IDasicDingtalkConfigService 
{
    @Autowired
    private DasicDingtalkConfigMapper dasicDingtalkConfigMapper;

    /**
     * 查询钉钉配置
     * 
     * @param dingtalkConfigI 钉钉配置主键
     * @return 钉钉配置
     */
    @Override
    public DasicDingtalkConfig selectDasicDingtalkConfigByDingtalkConfigI(Long dingtalkConfigI)
    {
        return dasicDingtalkConfigMapper.selectDasicDingtalkConfigByDingtalkConfigI(dingtalkConfigI);
    }

    /**
     * 查询钉钉配置列表
     * 
     * @param dasicDingtalkConfig 钉钉配置
     * @return 钉钉配置
     */
    @Override
    public List<DasicDingtalkConfig> selectDasicDingtalkConfigList(DasicDingtalkConfig dasicDingtalkConfig)
    {
        return dasicDingtalkConfigMapper.selectDasicDingtalkConfigList(dasicDingtalkConfig);
    }

    /**
     * 新增钉钉配置
     * 
     * @param dasicDingtalkConfig 钉钉配置
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDasicDingtalkConfig(DasicDingtalkConfig dasicDingtalkConfig)
    {
        return dasicDingtalkConfigMapper.insertDasicDingtalkConfig(dasicDingtalkConfig);
    }

    /**
     * 修改钉钉配置
     * 
     * @param dasicDingtalkConfig 钉钉配置
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDasicDingtalkConfig(DasicDingtalkConfig dasicDingtalkConfig)
    {
        return dasicDingtalkConfigMapper.updateDasicDingtalkConfig(dasicDingtalkConfig);
    }

    /**
     * 批量删除钉钉配置
     * 
     * @param dingtalkConfigIs 需要删除的钉钉配置主键
     * @return 结果
     */
    @Override
    public int deleteDasicDingtalkConfigByDingtalkConfigIs(Long[] dingtalkConfigIs)
    {
        return dasicDingtalkConfigMapper.deleteDasicDingtalkConfigByDingtalkConfigIs(dingtalkConfigIs);
    }

    /**
     * 删除钉钉配置信息
     * 
     * @param dingtalkConfigI 钉钉配置主键
     * @return 结果
     */
    @Override
    public int deleteDasicDingtalkConfigByDingtalkConfigI(Long dingtalkConfigI)
    {
        return dasicDingtalkConfigMapper.deleteDasicDingtalkConfigByDingtalkConfigI(dingtalkConfigI);
    }
}
